package com.ddwl.goods.mapper.bargain;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.goods.model.bargain.BargainSku;
import com.ddwl.schema.vo.goods.bargain.BargainSkuVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: hemiaojun
 * @Date: 2020/10/28
 * @Description:
 */
@Repository
public interface BargainSkuMapper extends TkMapper<BargainSku> {

    /**
     * 获取砍价商品sku
     * @param barcode
     * @return
     */
    BargainSkuVo getBargainSkuVo(@Param("barcode") String barcode);

    /**
     * 批量修改销售信息
     * @param bsList
     */
    void batchUpdateSales(@Param("list") List<BargainSku> bsList);
}
